package com.yanxml.spring.history.v3.demo5_enable;

import com.yanxml.spring.history.v3.demo5_enable.config.JavaConfig;
import com.yanxml.spring.history.v3.demo5_enable.redis.RedisTemplate;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class StartAppDemo5 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(JavaConfig.class);
        System.out.println(applicationContext.getBean(RedisTemplate.class));
    }
}

// 添加 @EnableAutoRedisConfiguration
// com.yanxml.spring.history.v3.demo5_enable.redis.RedisTemplate@7f77e91b